package com.fjnu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.fjnu.dao.IExamRepairDao;
import com.fjnu.entities.ExamRepair;
import com.fjnu.entities.User;
import com.fjnu.service.IExamRepairService;
@Service
@Transactional(propagation=Propagation.REQUIRED)
public class ExamRepairService implements IExamRepairService{
	@Autowired
	private IExamRepairDao examRepairDao;
	public List<ExamRepair> findExamRepair(Integer pageNo, Integer pageSize) {
		
		return examRepairDao.findExamRepair(pageNo, pageSize);
	}


	public void updateExamRepair(ExamRepair examRepair) {
		examRepairDao.updateExamRepair(examRepair);
	}

	
	public void addExamRepair(ExamRepair examRepair) {
		examRepairDao.addExamRepair(examRepair);
	}


	@Override
	public ExamRepair findUniqueExamRepair(int id) {
		
		return examRepairDao.findUniqueExamRepair(id);
	}
	
}
